<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello React</title>
</head>

<body>
    <!-- 根节点(容器节点) -->
    <div id="root"></div>

    <!-- 1 导入React和ReactDOM这两个核心包 -->
    <script src="./node_modules/react/umd/react.development.js"></script>
    <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>

    <script>
        // 2 创建一个包含 ‘月薪过万’ 的 p 标签
        const pTag = React.createElement('p', null, '月薪过万')

        // 3 渲染React元素到页面中的根节点(容器节点)去
        ReactDOM.render(pTag, document.getElementById('root'))
    </script>


</body>

</html>